package com.appstore.dao;

import java.util.List;

import com.appstore.exception.DaoException;
import com.appstore.model.Comment;

/**
 * ICommentDao offer some method to access comment.
 * 
 * @author zhbhun
 * 
 */
public interface ICommentDao {

	/**
	 * save comment
	 * @param comment
	 * @throws DaoException
	 */
	public void save(Comment comment) throws DaoException;
	
	/**
	 * find the comments by application id
	 * @param appId
	 * @return
	 * @throws DaoException 
	 */
	public List<Comment> findByApp(int appId) throws DaoException;
}
